-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add tags to invokers. #5289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tags to invokers. #5289
Conversation
|
LGTM with some small questions. |
Codecov Report
@@ Coverage Diff @@
## master #5289 +/- ##
==========================================
- Coverage 79.90% 75.23% -4.68%
==========================================
Files 238 238
Lines 14161 14172 +11
Branches 603 624 +21
==========================================
- Hits 11316 10662 -654
- Misses 2845 3510 +665
|
I confirmed it's working as expected. OW operators can configure tags for invokers like this.
Users can add the following annotations to their actions.
Activation for this action will be delivered to The annotations and the corresponding target invokers are as follows.
|
|
||
logger.info(this, s"invoker tags: (${tags.mkString(", ")})") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this.
[2022-07-21T11:00:02.599Z] [INFO] [#tid_sid_unknown] [Invoker] invoker tags: (v1, cpu)
It is required for the subsequent change. |
Description
This is to enable tag-based scheduling.
We can add tags to invokers like below.
There are already some codes for tag-based scheduling.
https://github.com/apache/openwhisk/blob/master/tests/src/test/scala/org/apache/openwhisk/core/scheduler/container/test/ContainerManagerTests.scala#L615
This is to add missing parts.
Related issue and scope
My changes affect the following components
Types of changes
Checklist: